<?php
/**
 * bs多规格sku商城系统
 * ============================================================================
 * 版权所有 2024-2099 wltx666.com，并保留所有权利。
 * 网站地址: https://wltx666.com
 * ============================================================================
 * Author: 草上飞
 * Email: wltx@alipay168.cn
 * QQ: 2719875001
 * Date: 2025/05/11
 * 描述:
 */

namespace app\api\controller\auto;


use app\api\controller\BaseIndex;
use app\result\auto\InvoiceResult;
use think\App;

class Invoice extends BaseIndex
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new InvoiceResult();
    }

    //数据列表
    public function list()
    {
        data_exit_json($this->objResult->api_list($this->user_id, $this->param));
    }

    //获取详情
    public function detail()
    {
        data_exit_json($this->objResult->api_get($this->user_id, $this->param));
    }

    //保存数据
    public function action()
    {
        data_exit_json($this->objResult->api_save_data($this->user_id, $this->param));
    }

    //删除数据
    public function delete()
    {
        data_exit_json($this->objResult->api_delete($this->user_id, $this->param));
    }

    //设置默认地址
    public function default()
    {
        data_exit_json($this->objResult->api_set_default($this->user_id, $this->param));
    }

    //获取下拉列表
    public function list_options()
    {
        data_exit_json($this->objResult->api_list_options($this->user_id, $this->param));
    }
}
